<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>微信后台 --登录</title>
	<link rel="stylesheet" href="<%=basePath%>/js/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="<%=basePath %>/css/signin.css">
</head>
<body>
	<div class="container">
      <form class="form-signin" action="${pageContext.servletContext.contextPath}/login" method="post" role="form">
        <h2 class="form-signin-heading">Please sign in</h2>
        <input type="text" name="username" class="form-control" placeholder="用户名" required autofocus>
        <input type="password" name="password" class="form-control" placeholder="密码" required>
        <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
      </form>
    </div>
    <script type="text/javascript">
		if ("${error}" != "") {
			alert("${error}");
		};
	</script>
</body>
</html>